home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
ListBoxEditor.h
< prev
next >
Wrap
Text File
|
1997-01-22
|
2KB
|
75 lines
/*
* File: ListBoxEditor.h
* Summary: A view that knows how to edit a TListBox.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 1/22/97 JDJ Created
*/
#pragma once
#include <ZListBox.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditListBoxCommand
// ===================================================================================
class CEditListBoxCommand : public CBaseEditPaneCommand<TListBoxBase, SListBoxInfo> {
typedef CBaseEditPaneCommand<TListBoxBase, SListBoxInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditListBoxCommand();
CEditListBoxCommand(TListBoxBase* pane, const SListBoxInfo& oldInfo, const SListBoxInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SListBoxInfo& newInfo);
};
// ===================================================================================
// CListBoxEditor
// ===================================================================================
class CListBoxEditor : public CBasePaneEditor<TListBoxBase, SListBoxInfo, CEditListBoxCommand> {
typedef CBasePaneEditor<TListBoxBase, SListBoxInfo, CEditListBoxCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CListBoxEditor();
CListBoxEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SListBoxInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SListBoxInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};